package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.common.dtos.PageResponseResult;
import com.heima.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmNewsDto;
import com.heima.model.wemedia.dtos.WmNewsPageReqDto;
import com.heima.model.wemedia.pojos.WmNews;

import java.util.List;

public interface WmNewsService extends IService<WmNews> {
    PageResponseResult<List<WmNews>> findList(WmNewsPageReqDto dto);

    ResponseResult<Object> submitNews(WmNewsDto dto);


    ResponseResult<WmNews> findOne(Integer id);

    ResponseResult<Object> delNews(Integer id);

    ResponseResult<Object> downOrUp(WmNewsDto dto);
}
